package mapper;

import entity.CustomerLoss;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface CustomerLossMapper {
    int insert(CustomerLoss customerLoss);
    List<CustomerLoss> selectAll();
    CustomerLoss selectById(Integer id);

    int delete(Integer id);
    int update(CustomerLoss customerLoss);

    List<CustomerLoss> selectByMap(Map<String, Object> map);
    List<CustomerLoss> selectByPage(Map<String, Object> params);

    @Update("update t_admin set headpic=#{headpic} where id=#{id}")
    int updateHeadPic(CustomerLoss customer);

    int batchDelete(Integer[] ids);
}
